﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_26_2021
{
    class Car
    {
        private string brand;
        private string type;

        public string Brand { get => brand; set => brand = value; }
        public string Type { get => type; set => type = value; }

        public Car(string brand,string type)
        {
            this.Brand = brand;
            this.Type = type;
        }
        public Car()
        {

        }

        public void Run()
        {
            Console.WriteLine("一辆品牌是{0}型号是{1}的车在奔驰",this.Brand,this.Type);
        }
    }
}
